#!/usr/bin/env python3
from flask_script import Manager, Server
from utils import create_app

import os

app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)

manager.add_command('runserver', Server(host='0.0.0.0', port=8081, use_debugger=True))

if __name__ == "__main__":
    manager.run()
